#include <stdio.h>

char *test()
{
    static char a[100] = "hello";
    char *p = a;
    p++;
    return p;
}

const char *test1()
{
    const char *s = "helloo";
    // 意思是将s指向一个常量的地址，常量在程序运行期间是一直有效的
    return s;
}

const char *test2()
{
    return "hello world";
}


int main()
{
    char *str = test();
    printf("%s\n", str);

    const char *str1 = test2();
    printf("%s\n", str1);
    return 0;
}

